$(function(){
	
});

/**
 * 管理员登录
 */
function manageLogin()
{
	GBL_JSON_POST(URL_FMT(SVR_CTX_PATH + "/system/loginoutAct!managerLogin.do"), 
		{'userName':'','password':'','rndNum':''}, 
		function(data){
			if (data.status == "success")
			{
				window.location.href=URL_FMT(SVR_CTX_PATH + "/super/workspace.jsp");
			} else {
				$.messager.alert('温馨提示',data.values,'warning');
			}
		});
};

/**
 * 管理员登出
 */
function manageLogout()
{
	GBL_JSON_POST(URL_FMT(SVR_CTX_PATH + "/system/loginoutAct!managerLogout.do"),null, 
		function(data){
			if (data.status == "success")
			{
				window.location.href=URL_FMT(SVR_CTX_PATH + "/super/index.jsp");
			} else {
				$.messager.alert('温馨提示',data.values,'warning');
			}
		});
};